package day03;

public class Text03 {
    public static void main(String[] args) {
        int m = 0;
        for (int i = 101; i <= 200; i++) {
            int temp = 0;
            for (int j = 2; j <= i / 2; j++) {
                if (i % j == 0) {

                    temp++;
                }
            }

            if (temp == 0) {
                if (m == 7) {
                    System.out.println();
                    m=0;
                }
                m++;
                System.out.print(i+" ");


            }
        }
    }

}




